package com.itheima.Demo01.demo02;

import java.lang.reflect.Method;

public class Test {
    public static void main(String[] args) throws Exception {
        Class aClass = Class.forName("com.itheima.Demo01.demo02.AnnoDemo");
        AnnoDemo A = (AnnoDemo) aClass.newInstance();
        Method[] methods = aClass.getDeclaredMethods();
        for (Method method : methods) {
            if (method.isAnnotationPresent(Anno.class)){
                method.invoke(A);
            }
        }

    }
    public void show(){
        System.out.println("1245");
    }
}
